package com.jxl.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
public class RoutDTO {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "线路编号")
    private String routeNo;

    @ApiModelProperty(value = "线路名称")
    private String name;

    @ApiModelProperty(value = "线路状态（1:启运, 0:停运）")
    private Integer status;

    @ApiModelProperty(value = "首次开通时间")
    @JsonFormat(pattern = "yyyy-M-d")
    private LocalDate startDate;

    @ApiModelProperty(value = "线路方向（1:上行, 2:下行）")
    private Integer direction;

    @ApiModelProperty(value = "线路站点信息")
    private List<RouteStationDTO> routeStations;
}
